<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no">
        <title>测试</title>
        <script>
            //加入设计稿以1000为准
            let fontSize = document.documentElement.clientWidth/ 10;
            document.documentElement.style.fontSize=fontSize + "px";
          </script>
    </head>
        <body>
            <div id="root"></div>
        </body>
</html>